﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace RTF2XML
{
    /// <summary>
    /// Does nothing but serve as a base class to link groups, controls, and plain text
    /// </summary>
    public abstract class GroupItem
    {
        protected bool bDestination = false;

        public bool IsDestination
        {
            get
            {
                return this.bDestination;
            }
        }

        public abstract void AddXML(ref XmlElement xmlParentNode);

        /// <summary>
        /// This should only be implemented in the Group class to start the xml document
        /// </summary>
        /// <param name="xmlDoc"></param>
        public virtual void AddXML(ref XmlDocument xmlDoc)
        {
        }
    }
}
